import request from '@/utils/request'
export function getAllNew() {
    return request({
        url: "/admin/getAllNew",
        method: 'get'
    })
}
export function delNewById(id) {
    return request({
        url: "/admin/delNewById",
        method: 'post',
        params: { id }
    })
}

export function searchNewByName(name) {
    return request({
        url: "/admin/searchNewByName",
        method: 'post',
        params: { name }
    })
}